package gdut.imis.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Description 大学第几学期枚举类
 * @Author JiaFu
 * @Date 2023/4/19 8:20
 */
public enum TermEnum {
    ONE(0, "大一"),
    TWO(1, "大二"),
    THREE(2, "大三"),
    FOUR(3, "大四");
    @EnumValue
    private final int type;
    @JsonValue
    private final String value;

    TermEnum(int type, String value) {
        this.type = type;
        this.value = value;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return value;
    }
}
